//
//  FriendTwoTableViewCell.m
//  YiXiProject
//
//  Created by iMac on 2019/7/25.
//  Copyright © 2019 iMac. All rights reserved.
//

#import "FriendTwoTableViewCell.h"

@implementation FriendTwoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        _headImg = [[UIImageView alloc]init];
        _headImg.backgroundColor = ColorAlphe(245, 245, 245, 1);
        _headImg.layer.cornerRadius = 40;
        _headImg.layer.masksToBounds = YES;
        [self.contentView addSubview:_headImg];
        _headImg.sd_layout.leftSpaceToView(self.contentView, 15).topSpaceToView(self.contentView, 10).widthIs(80).heightIs(80);
        
        _nameLab = [[UILabel alloc]init];
        _nameLab.backgroundColor = ClearColor;
        _nameLab.font = HeiTiFont(20);
        [self.contentView addSubview:_nameLab];
        _nameLab.sd_layout.leftSpaceToView(_headImg, 15).topSpaceToView(self.contentView, 20).rightSpaceToView(self.contentView, 60).heightIs(35);
        
        _detLabel = [[UILabel alloc]init];
        _detLabel.backgroundColor = ClearColor;
        _detLabel.numberOfLines = 0;
        _detLabel.font = HeiTiFont(18);
        _detLabel.textColor = ColorAlphe(180, 180, 180, 1);
        [self.contentView addSubview:_detLabel];
        _detLabel.sd_layout.leftSpaceToView(_headImg, 15).topSpaceToView(_nameLab, 0).rightSpaceToView(self.contentView, 60).bottomSpaceToView(self.contentView, 15);
        
        _typeImg = [[UIImageView alloc]init];
        _typeImg.hidden = YES;
        [self.contentView addSubview:_typeImg];
        _typeImg.sd_layout.rightSpaceToView(self.contentView, 15).topSpaceToView(self.contentView, 25).widthIs(50).heightIs(50);
    }
    return self;
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
